from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
	(r'^', include('dashboard.urls')),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^polls/', include('polls.urls')),
    (r'^accounts/', include('accounts.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^checkin/', include('checkin.urls')),
    (r'^userattributes/', include('userattributes.urls')),
    (r'^userprofile/', include('userprofile.urls')),
    (r'^waivers/', include('waivers.urls')),
    (r'^usersearch/', include('usersearch.urls')),
    (r'^analytics/', include('analytics.urls')),
    (r'^dashboard/', include('dashboard.urls')),
    (r'^social/', include('social.urls')),
	(r'^routes/', include('routes.urls')),

)

if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
    (r'^static_media/(?P<path>.*)$', 
        'serve', {
        'document_root': 'static_media',
        'show_indexes': True }),)